<?php
/**
 * WpConnectErrors.php
 * 
 * This file contains all errors of the wpconnect package in order to log errors just by number
 * @author Robert Schmidt <robert@wildpack.de>
 * @version 1.0
 * @package wildpack
 * @subpackage dataaccess.wpconnect
 * @dependencies: wildpack.base.observe.*
 */


/**
 * A base class for connector implementations
 * 
 * An abstract class containing all error messages of the wpconnect package in order to log errors just by number
 * @author Robert Schmidt <robert@wildpack.de>
 * @version 1.0
 * @package wildpack
 * @subpackage dataaccess.wpconnect
 * @dependencies: wildpack.base.observe.*
 */
abstract class WpConnectErrors extends WpObservable
{
	protected $ErrorTemplates = array(
		'20101' => array('Connection failed', 'Connection to host "[param0]" failed.'),
		'20102' => array('Connection failed', 'Connection to database "[param0]" failed.'),
		'20103' => array('Error in SQL query', 'Error in SQL query. [Datasource said:] [param0]; [Your query:] [param1]'),
		'20108' => array('Error in database credentials', 'At least one error occurred checking the database credentials. [Details:] [param0]'),
		'20109' => array ('Error creating query', 'An error occurred creating the query. [Details:]- [param0]'),
		'20120' => array ('Command could not be executed', 'An error occurred initialising the command. [Details:]- [param0]'),
		'20121' => array ('Command could not be executed', 'Command [param0] returned the following error: [param1]'),
		'90101' => array('Method failed', 'Method "[param0]" failed to complete succesfully'),
	);
}

/* End of file WpConnectErrors.php */
/* Location: ./wildpack/dataaccess/wpconnect/WpConnectErrors.php */ 